package com.wanwu.channel.remote.allinpay.http.resp;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName TLPrepayResp
 * @Description 通联统一下单返回
 * @Author husheng
 * @Date 2020-01-15 20:45
 */
@Data
public class TLPrepayResp extends TLBaseResp{

    private static final long serialVersionUID = -758532519783236737L;

    //渠道平台交易单号
    @JSONField(name = "chnltrxid")
    private String channelTrxId;

    //商户交易单号
    @JSONField(name = "reqsn")
    private String reqSn;

    //交易状态
    @JSONField(name = "trxstatus")
    private String trxStatus;

    //交易完成时间
    @JSONField(name = "fintime")
    private String finTime;

    //错误原因
    @JSONField(name = "errmsg")
    private String errMsg;

    //微信支付串
    @JSONField(name = "payinfo")
    private String payInfo;

    private String prePayReq;

    private String prePayResp;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}
